//
//  UmengSoaiclTool.h
//  money_ios
//
//  Created by dzmmac on 15/7/6.
//  Copyright (c) 2015年 dzmmac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UMSocialData.h"
#import "UMSocialSnsPlatformManager.h"
#import "ShareView.h"
#import "SDWebImageManager.h"

typedef void (^UMSocialSuccessBlock)();

typedef void (^UMSocialErrorBlock)();


@interface ShareManager : NSObject <UMSocialUIDelegate, UMSocialDataDelegate,ShareViewClickedDeleagte>

+ (ShareManager *)sharedManager;


@property (nonatomic , strong) SDWebImageManager *manager;

@property (nonatomic , strong) ShareView *shareView;

// 分享的地址
@property (nonatomic , strong) NSString *shareUrl;

// 分享的图片
@property (nonatomic , strong) UIImage *shareImage;

// 分享的内容
@property (nonatomic , strong) NSString *shareText;

// 哪个页面调用的分享
@property (nonatomic , strong) UIViewController *viewController;


@property (nonatomic, copy) UMSocialSuccessBlock umSocialSuccessBlock;
@property (nonatomic, copy) UMSocialErrorBlock   umSocialErrorBlock;

//
///**
// *  设置QQ和微信分享的Url
// *
// *  @param shareUrl 分享的URL连接
// */
//-(void)umengShareUrl:(NSString *)shareUrl shareImage:(UIImage  *)shareImage
//           shareText:(NSString *)shareText viewController:(UIViewController *)viewController
//             success:(UMSocialSuccessBlock)successBlock error:(UMSocialErrorBlock)errorBlock;

/**
 *  设置QQ和微信分享的Url
 *
 *  @param shareUrl 分享的URL连接
 */
-(void)umengShareUrl:(NSString *)shareUrl shareImageUrl:(NSString  *)shareImageUrl
           shareText:(NSString *)shareText viewController:(UIViewController *)viewController
             success:(UMSocialSuccessBlock)successBlock error:(UMSocialErrorBlock)errorBlock;

@end
